//
// CAnimatedValueBlock.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CAnimatedValueBlock {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CAnimatedValueBlock(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CAnimatedValueBlock obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CAnimatedValueBlock(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setValBool(SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_bool_t value) {
    nel3dJNI.CAnimatedValueBlock_ValBool_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_bool_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_bool_t getValBool() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValBool_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_bool_t(cPtr, false);
  }

  public void setValInt(SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_int_t value) {
    nel3dJNI.CAnimatedValueBlock_ValInt_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_int_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_int_t getValInt() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValInt_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_int_t(cPtr, false);
  }

  public void setValFloat(SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_float_t value) {
    nel3dJNI.CAnimatedValueBlock_ValFloat_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_float_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_float_t getValFloat() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValFloat_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_float_t(cPtr, false);
  }

  public void setValVector(SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CVector_t value) {
    nel3dJNI.CAnimatedValueBlock_ValVector_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CVector_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CVector_t getValVector() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValVector_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CVector_t(cPtr, false);
  }

  public void setValString(SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_std__string_t value) {
    nel3dJNI.CAnimatedValueBlock_ValString_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_std__string_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_std__string_t getValString() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValString_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueNotBlendableT_std__string_t(cPtr, false);
  }

  public void setValQuat(SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CQuat_t value) {
    nel3dJNI.CAnimatedValueBlock_ValQuat_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CQuat_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CQuat_t getValQuat() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValQuat_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CQuat_t(cPtr, false);
  }

  public void setValRGBA(SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CRGBA_t value) {
    nel3dJNI.CAnimatedValueBlock_ValRGBA_set(swigCPtr, this, SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CRGBA_t.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CRGBA_t getValRGBA() {
    long cPtr = nel3dJNI.CAnimatedValueBlock_ValRGBA_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CAnimatedValueBlendableT_NLMISC__CRGBA_t(cPtr, false);
  }

  public CAnimatedValueBlock() {
    this(nel3dJNI.new_CAnimatedValueBlock(), true);
  }

}
